package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.Domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_cash")
@ApiModel(value = "Cash对象", description = "用户钱包")
public class Cash extends Domain {
    @TableId(value = "id", type = IdType.AUTO)//如果没有这句 id会以很大的id
    @ApiModelProperty(name = "id", value = "主键-ID")
    private Long id;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "手机号")
    private String username  ;
    @ApiModelProperty(value = "个人资产")
    private BigDecimal earning;
//    @ApiModelProperty(value = "一级推荐收益")
//    private BigDecimal oneEarning;
//    @ApiModelProperty(value = "二级推荐收益")
//    private BigDecimal twoEarning;
//    @ApiModelProperty(value = "三级推荐收益")
//    private BigDecimal threeEarning;
    @ApiModelProperty(value = "1 开启接单 0 不开启接单")
    private Integer status;

    @ApiModelProperty(value = "团队收益")
    private BigDecimal memberEarning;
    @ApiModelProperty(value = "个人收益")
    private BigDecimal personEarning;
    @ApiModelProperty(value = "冻结资金")
    private BigDecimal freezeEarning;

}